package com.example.article.core.page.response;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.experimental.Tolerate;

@Data
@Builder
@ApiModel(value="分页model", description="")
public class PageableResponse {

    @ApiModelProperty(value = "当前第几页")
    private Long pageSize;   //当前第几页

    @ApiModelProperty(value = "每页的数值多少")
    private Long pageNo;    // 每页的数值多少

    @ApiModelProperty(value = "数据总数")
    private Long totalItems;  //数据总数

    @ApiModelProperty(value = "总页数")
    private Long totalPages;  //总页数

    @ApiModelProperty(value = "数据")
    private Object Items;   //数据

    @Tolerate
    public PageableResponse() {
    }
}
